{extend name='user/public/layout' /}
{block name='content'}
<div class="aui-container">
    <form class="am-form am-form-horizontal" action="{:url('user.account/infoDo')}" method="post">
        <ul class="fang-form">
            <li>
                <label>用户类型：</label>
                {$userInfo.model}
            </li>
            <li>
                <label>所在城市：</label>
                <select name="city">
                    {volist name='cityTree' id='val'}
                    <option value="{$val.id}" {if condition="$val.id eq $userInfo.city"}selected{/if}>{$val.name}</option>
                    {/volist}
                </select>
            </li>
            <li>
                <label>用户名：</label>
                {$userInfo.username}
            </li>
            <li>
                <label>昵称：</label>
                <input type="text" name="nickname" value="{$userInfo.nickname}">
            </li>
            <li>
                <label>真实姓名：</label>
                <input type="text" name="data[truename]" value="{$userInfo.userInfo.truename}">
            </li>
            <li>
                <label>性别：</label>
                <input type="radio" {if condition="$userInfo.userInfo.sex eq '男'"}checked {/if} value="男" name="data[sex]">男
                <input type="radio" {if condition="$userInfo.userInfo.sex eq '女'"}checked {/if} value="女" name="data[sex]">
                女
            </li>
            <li>
                <label>生日：</label>
                <input type="text" name="data[birthday]" value="{$userInfo.userInfo.birthday}">
            </li>
            <li>
                <label>证件类型：</label>
                <select id="selectIDType" name="code_type" class="selectStyle">
                    <option value="">身份证</option>
                </select>
            </li>
            <li>
                <label>证件号码：</label><input type="text" name="data[bodycode]" value="{$userInfo.userInfo.bodycode}" id="idcode"></li>
            <li>
                <label>公司名称：</label><input name="company"  type="text" value="{$userInfo.company}"></li>
            <li>
                <label>购房热线：</label><input type="text" name="buy_phone" value="{$userInfo.buy_phone}" ></li>

            <li>
                <label>联系qq：</label>
                <input type="text" name="data[qq]" value="{$userInfo.userInfo.qq}" class="inputStyle">
            </li>
            <li>
                <label>联系地址：</label>
                <input type="text" name="data[address]" value="{$userInfo.userInfo.address}">
            </li>
           <li></li>
        </ul>
        <input type="hidden" name="id" value="{$userInfo.id}">
        <button type="submit" class="am-btn am-margin-top-lg am-btn-primary am-btn-block">提交保存</button>
    </form>
</div>
{/block}